package com.kamistoat.meimeimall.meimeimallcart.vo;

import lombok.Data;

/**
 * 购物车商品小项。仅仅用于购物车向MySQL同步时构建
 */
@Data
public class CartItemVo {
    private Long skuId;
    private Integer count;
    /**
     * 商品是否被选中
     */
    private boolean selected;

    public CartItemVo(Long skuId, Integer count, boolean selected) {
        this.skuId = skuId;
        this.count = count;
        this.selected = selected;
    }
}
